<?php

use yii\db\Migration;

class m160120_100929_create_customer extends Migration
{
    public function up()
    {
        $this->createTable('customer', [
            'id' => $this->primaryKey(),
            'name' => $this->string(),
            'zip_code' => $this->string(10),
            'city' => $this->string(100),
            'province' => $this->string(100)
        ]);
    }

    public function down()
    {
        $this->dropTable('customer');
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
